package router

import (
	"github.com/gin-gonic/gin"
	"go.uber.org/zap"
	"shop_webs/goods_web/api/banner"
)

func InitBannerRouter(Router *gin.RouterGroup) {
	BannerRouter := Router.Group("banners")
	zap.S().Info("配置轮播图相关的url")
	{
		BannerRouter.GET("", banner.List)          //轮播图列表页
		BannerRouter.POST("", banner.New)          //新建轮播图
		BannerRouter.PUT("/:id", banner.Update)    //更新轮播图
		BannerRouter.DELETE("/:id", banner.Delete) //删除轮播图
	}
}
